package com.xidian.yunwudemo.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.gson.annotations.JsonAdapter;
import com.xidian.yunwudemo.util.DateAdapter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * data_bio_auth
 * @author 
 */
public class DataBioAuth implements Serializable {
    private Integer id;

    private Integer authWay;

    private String authWayDesc;

    private String userId;

    private String clientIp;

    private String softFeature;

    private Integer authFlag;

    private String authResDesc;

    private String authScore;

    @JsonAdapter(DateAdapter.class)
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date requestTime;

    @JsonAdapter(DateAdapter.class)
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;

    /**
     * 认证持续时间
     */


    private String lastingTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAuthWay() {
        return authWay;
    }

    public void setAuthWay(Integer authWay) {
        this.authWay = authWay;
    }

    public String getAuthWayDesc() {
        return authWayDesc;
    }

    public void setAuthWayDesc(String authWayDesc) {
        this.authWayDesc = authWayDesc;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getSoftFeature() {
        return softFeature;
    }

    public void setSoftFeature(String softFeature) {
        this.softFeature = softFeature;
    }

    public Integer getAuthFlag() {
        return authFlag;
    }

    public void setAuthFlag(Integer authFlag) {
        this.authFlag = authFlag;
    }

    public String getAuthResDesc() {
        return authResDesc;
    }

    public void setAuthResDesc(String authResDesc) {
        this.authResDesc = authResDesc;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getLastingTime() {
        return lastingTime;
    }

    public void setLastingTime(String lastingTime) {
        this.lastingTime = lastingTime;
    }

    public String getAuthScore() {
        return authScore;
    }

    public void setAuthScore(String authScore) {
        this.authScore = authScore;
    }

    public DataBioAuth() {
    }

}